ActiveReports 13
IndexOf Method (ObservableCollection<T>)

GrapeCity.ActiveReports.Viewer.Wpf Assembly > GrapeCity.Viewer.Common Namespace > ObservableCollection<T> Class : IndexOf Method
The object to locate in the List. The value can be null for reference types.
Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal item As T _
) As Integer
public int IndexOf( 
   T item
)

Parameters

item
The object to locate in the List. The value can be null for reference types.

Return Value

The zero-based index of the first occurrence of item within the entire Collection, if found; otherwise, -1.
See Also

Reference

ObservableCollection<T> Class
ObservableCollection<T> Members